<?xml version="1.0" encoding="utf-8" ?>
<Recipe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  Name="LinqToSharePoint"
  xmlns="http://schemas.microsoft.com/pag/gax-core"
  Bound="false">
  <DocumentationLinks>
    <Link Caption="SPMetal" Url="http://msdn.microsoft.com/en-us/library/ee538255.aspx" Kind="Documentation"/>
    <Link Caption="Using LINQ to SharePoint" Url="http://msdn.microsoft.com/en-us/library/ee535491.aspx" Kind="Documentation"/>    
  </DocumentationLinks>
  <xi:include href="../../../TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
  <Caption>LINQ to SharePoint</Caption>
  <Description>Generates the classes from given SharePoint lists</Description>
  <HostData Priority="90">
    <Icon File="Help/Icons/icon_ListAndDoc.ico" />
    <CommandBar Menu="SPSFProjectListAndDoc"/>
    <CommandBar Menu="SPSFFolderListAndDoc"/>
    <spsf:MetaData
    Visible="true"
    BindingType="CustomizationReference"
    BindingTypeTemplate="CustomizationReferenceTemplate"
    TestType="BaseCustomizationRecipeRunner"
    Enabled="true"
    CreateVSTemplate="true"
    Category="ListAndDoc"
    xmlns:spsf="http://www.spalmblogger.de">
      <spsf:Authors>
        <spsf:Author>Torsten Mandelkow</spsf:Author>
      </spsf:Authors>
      <spsf:VersionHistory>
        <spsf:VersionHistoryEntry>1.0 Initial Recipe</spsf:VersionHistoryEntry>
      </spsf:VersionHistory>     
      <spsf:WebPageContent>
        <![CDATA[]]>
      </spsf:WebPageContent>     
    </spsf:MetaData>
  </HostData>
  <Arguments>

    <!-- set standard parameters -->
    <xi:include href="../../BaseArguments.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Arguments/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

    <!-- LinQ Arguments -->
    <Argument Name="LINQClassName" Required="true" >
      <Converter Type="NamespaceStringConverter" />
      <ValueProvider Type="VisualStudioCreateItemName" MakeSafe="true" DefaultValue="TeamSite" />
    </Argument>

    <Argument Name="LINQExcludedLists" Required="true" >
    </Argument>
    <Argument Name="LINQSourceWeb" Required="true" >
      <ValueProvider Type="DebuggingWebAppProvider" />      
    </Argument>

  </Arguments>
  <GatheringServiceData>
    <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
      <Pages>
        <Page Height="350" Type="SPALM.SharePointSoftwareFactory.Library.CustomWizardPages.LINQImportPage, SPALM.SharePointSoftwareFactory.Library" />
        <Page Height="350">
          <Title>LINQ Settings</Title>
          <Fields>
            <Field ValueName="LINQClassName" Label="LINQ Class Name">
              <Help>Required Text. Contains the name of the generated class.</Help>
            </Field>
          </Fields>
        </Page>        
      </Pages>
    </Wizard>
  </GatheringServiceData>
  <Actions CoordinatorServiceType="ConditionalCoordinator">

    <xi:include href="../../BaseStartingActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

    <!-- Generate the XML and add to the project -->
    
    <!-- Call SPMetal -->    
    
    <!-- Add generated output file to the project -->
    
    <!-- Add reference to LINQ to the project -->
   

    <xi:include href="../../BaseFinalActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

  </Actions>
</Recipe>